package com.wmb.service.impl;

import com.wmb.bean.UserinfoBean;
import com.wmb.service.ILoginService;
import org.springframework.stereotype.Service;

//实现接口，定义具体规范

//类注入
@Service("login1")
public class LoginServiceAdmin implements ILoginService {
    /**
     * 登录业务逻辑处理
     * @param
     * @return true
     */

    @Override
    public boolean doLogin(UserinfoBean userinfoBean) {
        //登录前进行日志记录
        System.out.println("由用户进行了登录操作");
        System.out.println("登陆成功"+userinfoBean.getUserName());
        return true;
    }

    @Override
    public void doSleeping() {
        System.out.println("该休息了 ");
    }

    @Override
    public void doplay() {
        System.out.println("又执行了么=========");
    }

    @Override
    public void doeat() {
        System.out.println("该吃饭了！！！！");
    }


}
